'use strict';

const ws = require('nodejs-websocket');

const conn = ws.connect('ws://localhost:8003', function () {
    console.log('connect');
    conn.on('text', function (text) {
        console.log(text);
    });

    conn.on('close', function (text) {
        console.log('close?');
    });
});